-- GENERATED SPELL FOR [Spellbound Terrorguard] --


function spell0_21908(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(37488,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21908', 5000, 1)
end

function spell1_21908(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(31553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21908', 10314, 1)
end

function Sorts_21908(pUnit, Event)
local choix_sorts_21908 = math.random(0, 1)
if choix_sorts_21908 == 0 then
pUnit:RegisterEvent('spell0_21908', 1, 1)
end
if choix_sorts_21908 == 1 then
pUnit:RegisterEvent('spell1_21908', 1, 1)
end
end

function mob21908_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21908', math.random(1500, 3000), 1)
end

function mob21908_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21908_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21908_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21908, 1, 'mob21908_Action')
RegisterUnitEvent(21908, 2, 'mob21908_Leave')
RegisterUnitEvent(21908, 3, 'mob21908_Kill')
RegisterUnitEvent(21908, 4, 'mob21908_Die')
